<template>
	<view class="page_view">
		<view class="list">
			<view class="list-item" v-for="(item,index) in list">
				<view class="list-item-left">
					<view :class="[item.type == 1?'list-item-left-left':'list-item-left-left-shixioa']">
						￥<text class="list-item-left-left-num">20</text>
					</view>
					<view class="list-item-left-right">
						<view class="list-item-left-right-top">
							满1000元使用
						</view>
						<view class="list-item-left-right-bottom">
							2021/06/15 — 2021/11/16   
						</view>
					</view>
				</view>
				<view :class="[item.type == 1?'list-item-right':'list-item-right-yishiyong']">
					{{item.type == 1?'去使用':'已失效'}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{
						type:1
					},
					{
						type:1
					},
					{
						type:1
					},
					{
						type:2
					},
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style>
page{
	background-color: #fff;
}
.list{
	width: 100%;
	padding: 0 20rpx;
	box-sizing: border-box;
}
.list-item{
	width: 100%;
	height: 166rpx;
	/* background: #FFFFFF; */
	box-shadow: -1px 4px 5px 4px rgba(0,0,0,0.1);
	border-radius: 22rpx;
	display: flex;
	align-items: center;
	justify-content:space-between;
	padding: 0 20rpx;
	box-sizing: border-box;
	background-image: url('/static/images/user/coupon_bg.png');
	background-repeat: no-repeat;
	background-size: 100% auto;
	margin-top: 32rpx;
}
.list-item-right{
	width: 144rpx;
	height: 72rpx;
	background: linear-gradient(270deg, #E46C30 0%, #E32C1C 100%);
	border-radius: 16rpx;
	font-size: 28rpx;
	font-family: PingFang SC-Bold, PingFang SC;
	font-weight: bold;
	color: #FFFFFF;
	line-height: 72rpx;
	text-align: center;
}
.list-item-right-yishiyong{
	width: 144rpx;
	height: 72rpx;
	background: #999999;
	border-radius: 16rpx;
	font-size: 28rpx;
	font-family: PingFang SC-Bold, PingFang SC;
	font-weight: bold;
	color: #FFFFFF;
	line-height: 72rpx;
	text-align: center;
}
.list-item-left{
	display: flex;
	align-items: center;
}
.list-item-left-left{
	font-size: 32rpx;
	font-family: DIN-Bold, DIN;
	font-weight: bold;
	color: #E32D1D;
}
.list-item-left-left-shixioa{
	color: #999999;
}
.list-item-left-left-num{
	font-size: 80rpx;
	font-family: DIN-Bold, DIN;
	font-weight: bold;
}
.list-item-left-right{
	margin-left: 44rpx;
}
.list-item-left-right-top{
	font-size: 32rpx;
	font-family: Alibaba PuHuiTi 2.0-65 Medium, Alibaba PuHuiTi 20;
	font-weight: normal;
	color: #000000;
}
.list-item-left-right-bottom{
	font-size: 22rpx;
	font-family: PingFang SC-Medium, PingFang SC;
	font-weight: 500;
	color: #666666;
	margin-top: 12rpx;
}
</style>
